package org.jeecg.qis.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 成品/半成品检测抽样规则表
 * @Author: shaolong
 * @Date: 2023-04-18
 * @Version: V1.0
 */
@Data
@TableName("qis_rule_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "wms_rule_cfg对象", description = "成品/半成品检测抽样规则表")
public class QisRuleCfg implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Excel(name = "主键ID", width = 15)
    @ApiModelProperty(value = "主键ID")
    @TableId
    private Integer recId;
    /**
     * 更新时间
     */
    @Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
    /**
     * 规则分组ID
     */
    @Excel(name = "规则分组ID", width = 15)
    @ApiModelProperty(value = "规则分组ID")
    private String groupid;
    /**
     * 规则分组名称
     */
    @Excel(name = "规则分组名称", width = 15)
    @ApiModelProperty(value = "规则分组名称")
    private String groupnam;
    /**
     * 类型
     */
    @Excel(name = "类型", width = 15, dicCode = "QisRuleCfg_typ")
    @Dict(dicCode = "QisRuleCfg_typ")
    @ApiModelProperty(value = "类型")
    private String typ;
    /**
     * 上限
     */
    @Excel(name = "上限", width = 15)
    @ApiModelProperty(value = "上限")
    private BigDecimal upLimit;
    /**
     * 下限
     */
    @Excel(name = "下限", width = 15)
    @ApiModelProperty(value = "下限")
    private BigDecimal lowLimit;
    /**
     * 值
     */
    @Excel(name = "值", width = 15)
    @ApiModelProperty(value = "值")
    private Integer value;
}
